
include('graphics.node');

new_class(
  'Entity',
  function(x, y, angle) {
    graphics.Node.call(this, x, y, angle);
  },
  {
    destroy: function(game) {
      // Default behaviour is to be destroyed immediately.
      // Note that Game.deleteEntity will call this.parentNode.removeChild(this)
      // for us.
      game.deleteEntity(this);
    }
  },
  graphics.Node);
